<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        /**
         * 输出
         */
        // alert('干饭')
        // console.log('干饭')
        // document.write('干饭')

        /**
         * 输入
         */
        var name = prompt('请输入姓名：')
        console.log(name)
        var age = prompt('请输入年龄：')
        console.log(age)
        console.log(typeof age)
        console.log(age+2)
        console.log('----------------------------')

        age = Number(age)
        console.log(typeof age)
        console.log(age+2)

        /**
         * 转义符
         */
        console.log('welcome \to \nanjing')


        console.log(111,222,333)


    </script>
</head>
<body>

</body>
</html>